--- id: TASK-019 title: 'Open directly in preview / reading mode (-p, --preview)' status: "\U0001F3C1 Done" assignee: [] created_date: '2026-06-29 16:56' updated_date: '2026-06-30 05:11' labels: - feature - release-1 dependencies: [] priority: medium ordinal: 19000 --- ## Description Open a document straight into the Glamour read view, skipping the editor — turns glint into a glow-style markdown reader. Flag forms (matching the command convention): -p / --p / -preview / --preview, optionally with a file: 'glint -p notes.md' opens notes.md in preview; 'glint -p' could preview the picker selection or the current dir's pick. Implementation: main parses the preview flag and the app starts in ModePreview with the file loaded + rendered (a.Start variant that loads then togglePreview). Ctrl+P still toggles back to the editor; Esc/Ctrl+Q behave normally. Consider other reading-mode entry points later: a key in the picker to preview-without-editing, and a 'glint -p' over a directory/vault. Positioning: this lets glint replace glow as the terminal markdown reader. ## Acceptance Criteria - [x] #1 glint -p [file] (and --preview / -preview / --p) opens the file directly in the read preview - [x] #2 Ctrl+P toggles back to the editor; quit/esc behave normally - [x] #3 Works as a glow-style reader (themed preview, no dark panels) ## Implementation Notes main.go -p/--preview flag → App.StartPreview(path): Load then togglePreview (ModePreview); no file falls back to picker. setSize re-renders preview at new width. README usage + help COMMANDS document -p. 3 app tests, all green.